/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * menuPrincipal.java
 *
 * Created on 11/08/2011, 09:20:51
 */
/**
 *
 * @author Anthony
 */
public class menuPrincipal extends javax.swing.JFrame {

    /** Creates new form menuPrincipal */
    public menuPrincipal() {
        initComponents();
        setLocationRelativeTo(null);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        botaoCadCliente = new javax.swing.JButton();
        botaoCadLivro = new javax.swing.JButton();
        botaoEmprestimo = new javax.swing.JButton();
        botaoPagamento = new javax.swing.JButton();
        botaoSair = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("SisTeca 1.0.1");
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        botaoCadCliente.setFont(new java.awt.Font("Tahoma", 1, 14));
        botaoCadCliente.setText("Cadastrar cliente");
        botaoCadCliente.setOpaque(false);
        botaoCadCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoCadClienteActionPerformed(evt);
            }
        });
        getContentPane().add(botaoCadCliente, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 40, 180, -1));

        botaoCadLivro.setFont(new java.awt.Font("Tahoma", 1, 14));
        botaoCadLivro.setText("Cadastrar livro");
        botaoCadLivro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoCadLivroActionPerformed(evt);
            }
        });
        getContentPane().add(botaoCadLivro, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 100, 180, -1));

        botaoEmprestimo.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        botaoEmprestimo.setText("Emprestimo de livro");
        botaoEmprestimo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoEmprestimoActionPerformed(evt);
            }
        });
        getContentPane().add(botaoEmprestimo, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 160, 180, -1));

        botaoPagamento.setFont(new java.awt.Font("Tahoma", 1, 14));
        botaoPagamento.setText("Pagamento");
        botaoPagamento.setMaximumSize(new java.awt.Dimension(125, 23));
        botaoPagamento.setMinimumSize(new java.awt.Dimension(125, 23));
        botaoPagamento.setPreferredSize(new java.awt.Dimension(125, 23));
        botaoPagamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoPagamentoActionPerformed(evt);
            }
        });
        getContentPane().add(botaoPagamento, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 220, 180, -1));

        botaoSair.setFont(new java.awt.Font("Tahoma", 1, 14));
        botaoSair.setText("Sair");
        botaoSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoSairActionPerformed(evt);
            }
        });
        getContentPane().add(botaoSair, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 310, 80, -1));

        jLabel2.setFont(new java.awt.Font("Franklin Gothic Medium", 1, 14));
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("SisTeca V 1.0.1  Powered By SkyNet");
        getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 320, 250, -1));

        jLabel1.setBackground(new java.awt.Color(102, 102, 255));
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Livros2.jpg"))); // NOI18N
        jLabel1.setOpaque(true);
        getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 390, 340));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botaoCadClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoCadClienteActionPerformed
        // TODO add your handling code here:
        menuCadCliente a = new menuCadCliente();
        a.show();
        
    }//GEN-LAST:event_botaoCadClienteActionPerformed

    private void botaoCadLivroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoCadLivroActionPerformed
        // TODO add your handling code here:
         menuCadLivro a = new menuCadLivro();
         a.show();
    }//GEN-LAST:event_botaoCadLivroActionPerformed

    private void botaoSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoSairActionPerformed
        // TODO add your handling code here:
        dispose();
    }//GEN-LAST:event_botaoSairActionPerformed

    private void botaoPagamentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoPagamentoActionPerformed
        // TODO add your handling code here:
        menuPagamento a = new menuPagamento();
        a.show();
    }//GEN-LAST:event_botaoPagamentoActionPerformed

    private void botaoEmprestimoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoEmprestimoActionPerformed
        // TODO add your handling code here:
        menuEmprestimo a = new menuEmprestimo();
        a.show();
    }//GEN-LAST:event_botaoEmprestimoActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new menuPrincipal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botaoCadCliente;
    private javax.swing.JButton botaoCadLivro;
    private javax.swing.JButton botaoEmprestimo;
    private javax.swing.JButton botaoPagamento;
    private javax.swing.JButton botaoSair;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    // End of variables declaration//GEN-END:variables
}
